home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / python-gst0.10.postinst < prev    next >
Encoding:
Text File  |  2009-02-21  |  682 b   |  34 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. PYTHON_DEFAULT=$(pyversions --default)
  6.  
  7. this="python-gst0.10"
  8.  
  9. pc_files() {
  10.     runtime="$1"
  11.  
  12.     dpkg -L "$this" | sed -n -e "s#^/usr/lib/pkgconfig/$runtime/##p"
  13. }
  14.  
  15. if [ "$1" = "configure" ]; then
  16.     cd /usr/lib/pkgconfig
  17.  
  18.     for f in $(pc_files $PYTHON_DEFAULT); do
  19.         ln -f -s "$PYTHON_DEFAULT/$f"
  20.     done
  21. fi
  22.  
  23. # Automatically added by dh_pycentral
  24. rm -f /var/lib/pycentral/python-gst0.10.pkgremove
  25. if which pycentral >/dev/null 2>&1; then
  26.     pycentral pkginstall python-gst0.10
  27.     if grep -qs '^python-gst0.10$' /var/lib/pycentral/delayed-pkgs; then
  28.         sed -i '/^python-gst0.10$/d' /var/lib/pycentral/delayed-pkgs
  29.     fi
  30. fi
  31. # End automatically added section
  32.  
  33.  
  34.